package org.example.flea_market_mvc.enums;

/**
 * 评价状态枚举类
 * 定义用户评价的不同状态码和描述
 */
public enum RatingStatusEnum {
    NORMAL(0, "正常"),
    DELETED(1, "已删除"),
    PENDING_REVIEW(2, "待审核");

    private final int code;      // 状态代码
    private final String description;  // 状态描述

    RatingStatusEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}